using UnityEngine;

public class ShowAds : MonoBehaviour
{
	public static long apiLevel = 1L;

	public static int apiLevelint = 1;

	private void Awake()
	{
		if (PlayerPrefs.GetInt("tmp") != 7)
		{
			if (AdvertisementHandler.lastAdType != 0)
			{
				AdvertisementHandler.DisableAds();
				Invoke("Enable", 1f);
			}
			else
			{
				AdvertisementHandler.ShowAds();
			}
		}
	}

	private void Enable()
	{
		AdvertisementHandler.EnableAds();
	}
}
